package com.touna.aop;

import com.alibaba.fastjson.JSONObject;
import com.touna.aop.config.AopConfig;
import com.touna.aop.service.RequestService;
 import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * author: xl
 * time: 2018/6/29 16:09
 * description:
 **/
public class AopTest {


    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AopConfig.class);
        RequestService httpRequest= (RequestService)applicationContext.getBean("httpReaquest");
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("name","xiaoli");
        httpRequest.call(jsonObject);

    }




}
